$OpenBSD: patch-Makefile,v 1.1.1.1 2016/09/03 10:35:10 fcambus Exp $
--- Makefile.orig	Fri Feb  6 19:11:45 2004
+++ Makefile	Fri Sep  2 12:20:48 2016
@@ -1,4 +1,4 @@
-PREFIX=/usr/local
+PREFIX?=/usr/local
 EXESUFFIX=
 SOCKETLIBS=
 
@@ -8,9 +8,9 @@ SOCKETLIBS=
 # for solaris:
 #SOCKETLIBS = -lsocket -lnsl
 
-CC=gcc
-CFLAGS=-O3 -Wall `sdl-config --cflags` -DPREFIX=\"$(PREFIX)\"
-LDFLAGS=`sdl-config --libs` $(SOCKETLIBS)
+CC?=gcc
+CFLAGS+=-Wall `sdl-config --cflags` -DPREFIX=\"$(PREFIX)\"
+LDFLAGS+=`sdl-config --libs` $(SOCKETLIBS)
 
 
 OBJS= \
@@ -71,7 +71,7 @@ install: all installdirs
 #	cp cgterm.cfg $(PREFIX)/etc/
 #	cp cgchat.cfg $(PREFIX)/etc/
 
-installdirs: $(PREFIX)/bin $(PREFIX)/share $(PREFIX)/share/cgterm $(PREFIX)/etc
+installdirs: $(PREFIX)/bin $(PREFIX)/share $(PREFIX)/share/cgterm
 
 $(PREFIX)/bin:
 	mkdir $(PREFIX)/bin > /dev/null 2>&1
